﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace com.dz.ht.ui
{
    public partial class FrmChapterUrl : Form
    {
        public FrmChapterUrl()
        {
            InitializeComponent();
        }

        public string ChapterUrl { get; set; }

        public int ActionType { get; set; }

        private void btnSure_Click(object sender, EventArgs e)
        {
            if (textBox1.Text.Trim() == "")
            {
                MessageBox.Show("请输入章节地址", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
                return;
            }

            ActionType = 0;

            ChapterUrl = textBox1.Text.Trim();
            this.DialogResult = DialogResult.OK;
            this.Close();
        }

        private void btnSetUp_Click(object sender, EventArgs e)
        {
            if (textBox1.Text.Trim() == "")
            {
                MessageBox.Show("请输入章节地址", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
                return;
            }

            ActionType = 1;

            ChapterUrl = textBox1.Text.Trim();
            this.DialogResult = DialogResult.OK;
            this.Close();
        }
    }
}
